package com.itheima.web3.listerner;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

//全局侦听servletContext的创建
@WebListener
public class UserServletListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("创建了");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
    }
}
